<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<style>
  .box {
    float: left;
    margin-left: 100px;
    margin-top: 50px;
    background-color: rgba(244, 245, 247);
    width: 1400px;
    height: 600px;
    border-radius: 50px 0 50px 0;
    box-shadow: 0 5px 5px -5px rgba(0, 0, 0, 0.5);
  }

  ul {
    float: left;
    padding: 0;
    cursor: pointer;
    width: 250px;
    height: 250px;
    margin-top: 10px;
    margin-left: 20px;
    background-color: rgba(255, 255, 255);
  }

  ul:hover {
    transform: translateY(-20px);
    transition: transform 0.3s ease
  }

  .box p {
    font-size: 20px;
    margin-left: 10px;
    color: rgba(104, 95, 80);
  }

  img {
    width: 250px;
    height: 155px;
  }

  h5 {
    font-weight: normal;
    font-size: 14px;
    margin-top: -1px;
  }

  s {
    color: rgba(239, 183, 151);
    text-decoration: none;
  }

  h4 {
    font-weight: normal;
    font-size: 14px;
    margin-top: -10px;
  }

  li {
    list-style: none;
  }
</style>

<body>
  <div class="box">
    <p> 精品推荐</p>
  </div>
  <script>

    const div = document.querySelector('.box')
    // const mbox = document.querySelector('.mbox')
    let data = [
      {
        src: 'xrymimages/course01.png',
        title: 'Think PHP 5.0 博客系统实战项目演练',
        num: 1125
      },
      {
        src: 'xrymimages/course02.png',
        title: 'Android 网络动态图片加载实战',
        num: 357
      },
      {
        src: 'xrymimages/course03.png',
        title: 'Angular2 大前端商城实战项目演练',
        num: 22250
      },
      {
        src: 'xrymimages/course04.png',
        title: 'Android APP 实战项目演练',
        num: 389
      },
      {
        src: 'xrymimages/course05.png',
        title: 'UGUI 源码深度分析案例',
        num: 124
      },
      {
        src: 'xrymimages/course06.png',
        title: 'Kami2首页界面切换效果实战演练',
        num: 432
      },
      {
        src: 'xrymimages/course07.png',
        title: 'UNITY 从入门到精通实战案例',
        num: 888
      },
      {
        src: 'xrymimages/course08.png',
        title: 'Cocos 深度学习你不会错过的实战',
        num: 590
      },
    ]
    for (let i = 0; i < data.length; i++) {
      const ul = document.createElement('ul')
      ul.innerHTML = `
 <img src="${data[i].src}" alt="">
      <h5>${data[i].title}</h5>
      <h4><s>高级.${data[i].num}</s>人在学习</h4>
`
      div.appendChild(ul)
    }
  </script>
</body>

</html>